package com.avantis.common.entity;

import com.avantis.common.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: tracywang
 * @Date: 2019/2/15
 * @Descrption:
 */
@Entity
@Data
@Table(name = "k_sys_serial_number")
public class SysSerialNumber extends BaseEntity implements Serializable {

    @ApiModelProperty("模块名称")
    @Column
    private String moduleName;

    @ApiModelProperty("模块编码")
    @Column
    private String moduleCode;

    @ApiModelProperty("当前模块 使用的序列号模板")
    @Column(length = 32)
    private String configTemplate;

    @ApiModelProperty("存放当前序列号的值")
    @Column
    private Integer maxSerial=0;

    @ApiModelProperty("预生成序列号存放到缓存的个数")
    @Column
    private Integer preMaxNum=1000;

    @ApiModelProperty("是否自动增长模式，0：否  1：是")
    @Column
    private String isAutoIncrement;

}
